//
//  TopicCell.m
//  Leisure
//
//  Created by Alex on 16/6/30.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "TopicCell.h"
@interface TopicCell ()
@property (weak, nonatomic) IBOutlet UILabel *addtime_f;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIImageView *coverimg;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *comment;


@end

@implementation TopicCell

- (void)awakeFromNib {
   
}

- (void)setCellWithModel:(id)model {
    
    TopicModel *topicmodel = model;
    self.addtime_f.text = topicmodel.addtime_f;
    self.title.text = topicmodel.title;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:topicmodel.coverimg] placeholderImage:[UIImage imageNamed:@"4"]];
    self.content.text = topicmodel.content;
    self.comment.text = [NSString stringWithFormat:@"%@",topicmodel.comment];
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
